<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page isELIgnored="false" %>
<%@ include file="/include/taglibs.jsp"%>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta charset="utf-8" />
  <!-- HTTP 1.1 -->
  <meta http-equiv="pragma" content="no-cache,no-store">
  <!-- HTTP 1.0 -->
  <meta http-equiv="cache-control" content="no-cache,no-store">
  <!-- Prevent caching at the proxy server -->
  <meta http-equiv="expires" content="0">
  <title>快速开发平台综合管控系统</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  <%@ include file="/include/base_styles.jsp"%>
  <script src="${ctx}/assets/admin/pagejs/common.js"></script>
</head>
<body class="no-skin">
<!-- 上面导航栏开始 -->
<%@ include file="/include/top.jsp"%>
<!-- 上面导航栏结束 -->
<div class="main-container" id="main-container">
  <script type="text/javascript">
    try {
      ace.settings.check('main-container', 'fixed')
    } catch (e) {
    }
    var _base="${base}";
  </script>

  <!-- #section:basics/sidebar -->
  <div id="sidebar" class="sidebar responsive">
    <script type="text/javascript">
      try {
        ace.settings.check('sidebar', 'fixed')
      } catch (e) {
      }
    </script>
    <!-- 左边导航栏 -->
    <%@ include file="/include/left.jsp"%>
    <!-- 左边导航栏结束 -->

    <!-- #section:basics/sidebar.layout.minimize -->
    <div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse" >
      <i class="ace-icon fa fa-angle-double-left white" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right" id="firstdenglu" style="background-color:#585858"></i>
    </div>
    <!-- /section:basics/sidebar.layout.minimize -->
    <script type="text/javascript">
      try {
        ace.settings.check('sidebar', 'collapsed')
      } catch (e) {
      }
    </script>
  </div>

  <!-- top2开始 -->
  <%@ include file="/include/pagecontent.jsp"%>

  <!-- top2结束 -->
  <script type="text/javascript">
    //Load content via ajax
    var back_url = [];//存放点击历史的数组
    ace.load_ajax_scripts( [ null ], function() {
      jQuery(function($) {
        //消息提醒的函数调用
        //间隔15秒
        var newdate = new Date();
        newdate = newdate.getTime();
        $('input, textarea').placeholder();

        $(function() {
          $(".tooltip-primary").tooltip();
        });
        if ('enable_ajax_content' in ace) {
          var options = {
            content_url : function(url) {
              //返回上页的url
              back_url.push(document.location.href);
              if(back_url.length>20){
                back_url=back_url.slice(back_url.length-19,back_url.length);
              }
              var path = document.location.href;
              var path2 = path.split("#")[1];
              var path3 = path.split("#")[1].split("?").length;
              if (path3 > 1) {

                return  path.split("#")[1].split("?")[0];
//											+ ".action?"
//											+ path.split("#")[1].split("?")[1]; //+ url.replace(/\//, "=");
              } else {
                return path2;
              }
            }
            ,default_url : '#'
          }
          ace.enable_ajax_content($, options)
        }
      });
      /* //自动完成分类框
       $("#nav-search-input1").catcomplete({//获取分类自动完成的方法
       type : "post",
       delay : 0,//输入之后出现自动完成框的延时时间
       source : "${base}system/backend_page!getConleSearch.action",//加载的数据
       select : function(event, ui) {
       //location = encodeURI(encodeURI(ui.item.url));
       location = ui.item.url;
       }
       });
       $("#nav-search-input1").blur(function(){
       $("#nav-search-input1").val("");
       }); */

      $(document).on('settings.ace.jqGrid' , function(ev, event_name, collapsed) {
        if( event_name === 'sidebar_collapsed' || event_name === 'main_container_fixed' ) {
          setTimeout(function() {
            $(".grid-table").jqGrid('setGridWidth',$(".grid-table").closest('[class*="col-"]').width());
          }, 0);
        }
      });

    });

  </script>
  <!--修改个人资料弹窗-->
  <div id="fastEditDialog" tabindex="-1" class="modal  fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog my-dialog-5" id="addfastclass">
      <div class="modal-content">
        <div class="my-dialog-header-1">
          <i class="ace -icon  fa fa-check"></i>修改个人资料
          <button type="button" class="close my-close" data-dismiss="modal" aria-label="Close" onclick="fastEditCancel()">
            <i class="fa fa-times"></i>
          </button>
        </div>
        <div class="modal-body" data-spy="scroll">
          <div id="fastEditDiv"></div>
        </div>
        <div class="modal-footer   my-dialog-footer">
          <button type="button" class="btn btn-primary" onclick="fastEditOk()">确认</button>
          <button type="button" class="btn " data-dismiss="modal" onclick="fastEditCancel()">取消</button>
        </div>
      </div>
    </div>
  </div>

  <!-- 提示信息 -->
  <div id="alertstopt" tabindex="-1" class="modal fade" role="dialog"
       aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog  my-dialog-1">
      <div class="modal-content  ">
        <div class="my-dialog-header-1">
          <i class="ace -icon  fa fa-check"></i> 提示
          <button type="button" class="close   my-close" data-dismiss="modal"
                  aria-label="Close">
            <i class="fa fa-times"></i>
          </button>
        </div>
        <div class="modal-body  my-dialog-body" data-spy="scroll">
          <i class="ace-icon fa fa-hand-o-right blue bigger-120"></i><span
                id="tishitopt"></span>
        </div>
        <div class="modal-footer   my-dialog-footer">
          <button type="button" class="btn btn-primary" data-dismiss="modal">确认</button>
        </div>
      </div>
    </div>
  </div>
</body>
</html>
